/**
  * An image dipicting a location displayed behind the player characters
  *
  * @author "Brian MacCarthy","Owen Grogan";
  * @created "2007-03-04 Brian MacCarthy";
  * @revised "$Date: 2007-03-06 19:11:00 $"; 
  */

package exfist;

import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.awt.image.ImageObserver;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class Background extends Canvas implements ImageObserver
{
	BufferedImage bg;
	SpriteCache sc=new SpriteCache();
	protected Background()
	{
		bg= sc.getSprite("Backdrops/Indoor.gif");
	}
	protected void switchBackground(String b)
	{
		bg= sc.getSprite(b);
	}
	public void paint(Graphics g)
	{
		g.drawImage(bg, 0,0,1024, 768, null);
	}
}
